﻿@{
    ViewBag.Title = ViewBag.BlogUserName + "的说说 - 小博客";
    Layout = "~/Views/Shared/_BlogLayout.cshtml";
}
@using MyBlog
<link href="~/Content/Blog/mood.css" rel="stylesheet" />
<div class="m-main">
    <div class="umess-head">
        说说
    </div>
    <div class="m-main-tip">
        <div class="m-main-tip-left">
            有什么就一吐为快吧^_^
        </div>
        <div class="m-main-tip-right">
            @if (ViewBag.CanEdit)
            {
                <span onclick="showSendView(0)">发表说说 <i class="icon-edit"></i></span>
            }
        </div>
    </div>
    <div id="dvSendView" style="display:none;background-color:white; width:60%; border:solid 2px #226822;padding:5px;position:absolute; z-index:899">
        <div style="clear:both; border-bottom:#CCC 1px solid;height:30px;line-height:30px; padding-left:10px;">
            @if (UserSession.LoginUserInfo != null)
            {
            @:当前用户：<span>@UserSession.LoginUserInfo.NickName</span>
            }
        </div>
        <div style="clear:both; padding:10px;">
            <script id="content" name="content" style="height:180px;width:100%; margin-bottom:5px;" type="text/plain">
            </script>
            <div style="clear:both; padding-bottom:3px;">
                <input type="hidden" id="hID" value="0" />
                <input type="button" id="btnok" value="发表" onclick="sendMood()" class="btnsubmit" />
                <input type="button" id="btnClose" value="关闭" onclick="closeSendView()" class="btnsubmit" />
            </div>
        </div>
    </div>
    <div id="dvMoodList" style="clear:both;padding-left:20px;">
    </div>
    <div id="laypager" class="mood-pager"></div>
    <input type="hidden" id="huid" value="@ViewBag.username" />
    <input type="hidden" id="hpage" value="@ViewBag.TotalPage" />
</div>
<script src="~/Scripts/Blog/usermood.js"></script>
